<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>易优名品</title>
    <link rel="stylesheet" href="__LayUI__/css/layui.css">
    <link rel="stylesheet" href="__Admin__/css/admin.scss">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
   {include file="layout/head" /}

    {include file="layout/sidebar" /}

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div id="mainContain">
            <div class="layui-row">
                <a href="{:url('cate/add')}">新增栏目</a>   
            </div>
             <form method="POST" class="layui-form " autocomplete="off">
                    <table class="layui-table">
                        <colgroup>
                          <col width="150">
                          <col width="100">
                          <col width="200">
                         
                          <col width="200">
                          <col>
                        </colgroup>
                        <thead>
                          <tr>
                            <th>ID</th>
                            <th>排序</th>
                            <th>栏目名称</th>
                           
                            <th>栏目类型</th>

                            <th>操作</th>
                          </tr> 
                        </thead>
                        <tbody>
                            {volist name="res" id="vo"}
                            <tr>
                                <td>{$vo.id}</td>
                                <td><input name={$vo['id']}  class='layui-input' value={$vo['sort']}></td>
                                <td><?php echo str_repeat('---',$vo['level'])?>{$vo.catename}</td>
                              
                                <td>{if condition = "$vo['type'] eq 1"}列表{else/}单页{/if}</td>

                                <td>
                                    <a href="{:url('edit',array('id'=>$vo['id']))}">修改</a>
                                    <a href="{:url('del',array('id'=>$vo['id']))}">删除</a>
                                </td>
                            </tr>
                            {/volist}
                            <tr>
                                <td colspan="5" style='text-align: right'>
                                    <div class="layui-form-item">
                                        <div class="layui-input-block">
                                          <button class="layui-btn" >排序</button>
                                          <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </tbody>

                     </table>
                    <nav>

                    </nav>
                 
             </form>
        </div>
    </div>

    {include file="layout/footer" /}

</div>
<script src="__LayUI__/layui.js"></script>
<script>
    layui.use('element', function(){       
});
</script>
</body>
</html>